package com.twu.biblioteca;

import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashSet;

import static java.util.Arrays.asList;

/**
 * Created by gregorymeyer on 2014/03/07.
 */
public class AppRunner {

    private  static String HP = "Harry Potter";
    private  static String SHAN = "Shantaram";
    private  static String NOD = "Noddy";
    private  static String SN = "Silly Name";
    private  static String[] BOOKS = new String[] {HP, SHAN, NOD, SN};
    private  static String NC = "Neptune's Children - 2009 - Ridley Scott - 9";
    private  static String WL = "Wanderlust - 2010 - Whoknows - 6";
    private  static String[] MOVIES = new String[] {NC,WL};
    private  static User userX = new User("123-4567","password","UserX","88, Daliah Crescent, Jockenville, Riley","087 767 3231","theMan@gmail.com");
    private static User userY = new User("123-4568","password1","UserY","some bullshit address","111 111 1111","anEmail@email.com");

    public static void main(String[] args) throws IOException {
        BibliotecaApp bibliotecaApp =
                new BibliotecaApp(System.out,System.in, new Library(new HashSet<String>(asList(BOOKS)),new HashSet<String>(asList(MOVIES))),new ArrayList<User>(Arrays.asList(userX, userY)));
        bibliotecaApp.start();
    }
}
